function cargarFoto()
{
	document.getElementById("btn_cargarFoto").style.visibility="hidden";
	document.getElementById("form_cargarFoto").style.visibility="visible";
}

function cancelarCargarFoto()
{
	document.getElementById("btn_cargarFoto").style.visibility="visible";
	document.getElementById("form_cargarFoto").style.visibility="hidden";
}

function canUpload()
{
	if(document.form_cargarFoto.foto.value)
		document.getElementById("sub_cargar").disabled=false;
	else
		document.getElementById("sub_cargar").disabled=true;
}

function ocultardiv(id)
{
	document.getElementById(id).style.display="none";
}

function mostrardiv(id)
{
	document.getElementById(id).style.display="visible";
}

function mostrarPopUp(url,name) {
newwindow=window.open(url,name,'height=400,width=600,top=150,left=300,resizable');
if (window.focus) {newwindow.focus()}
}
